//
//  ViewController.m
//  10-JSONHomeWork
//
//  Created by 李昊林 on 16/8/10.
//  Copyright © 2016年 李昊林. All rights reserved.
//

#import "ViewController.h"
#import "FindCar.h"
#import "Result.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self handleData];
}
- (void)handleData {
    [[NSBundle mainBundle] pathForResource:@"AllCar" ofType:@"json"];
    NSData*data = [NSData dataWithContentsOfFile:path];
    NSError *error = nil;
    [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:&error];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
